package com.laotou99.backjack.test;

import static org.junit.Assert.*;

import java.util.ArrayList;
import java.util.List;

import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import com.alibaba.fastjson.JSON;
import com.laotou99.backjack.think.ThinkClass1;

public class MainTest1 {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		System.out.println("setUpBeforeClass()");
	}

	@Before
	public void setUp() throws Exception {
		System.out.println("setUp()");
	}

	@Test
	public void test() {
//		fail("Not yet implemented");
		assertEquals(1+2, 3);
	}
	
	@Test
	public void test2(){
		ThinkClass1 tc1 = new ThinkClass1();
		String[] arr1={};
//		tc1.PaiXPuKP(arr1);
//		tc1.ShengCPuKP();
	}
	
	@Test
	public void test3(){
		
		List<String> li1 = new ArrayList<String>();
		li1.add("1");		li1.add("2");
		li1.add("3");		li1.add("4");
		li1.add("5");		li1.add("6");
		li1.add("7");		li1.add("8");
		String str1 = li1.get(0);
		System.out.println(""+JSON.toJSONString(li1));
		li1.remove(0);
		System.out.println(""+JSON.toJSONString(li1));
		System.out.println(str1);
	}

}
